package cn.yujiago.shiro.pojo;

import java.util.List;

/**
 * 用于展示权限树，并显示权限节点是否被当前用户或角色所拥有
 */
public class AuthNode {

    private Long value;
    private String name;
    private Long parentId;
    private boolean checked;

    private List<AuthNode> list;

    public AuthNode(Long value, Long parentId, String name, boolean checked){
        this.value = value;
        this.parentId = parentId;
        this.name = name;
        this.checked = checked;
    }

    public Long getValue() {
        return value;
    }

    public void setValue(Long value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public List<AuthNode> getList() {
        return list;
    }

    public void setList(List<AuthNode> list) {
        this.list = list;
    }
}
